{% import '/macros.html' as macros %}

<!DOCTYPE html>
<html>
<head>
	{% block head %}
	<title>{% block title %}小白鼠--高效课堂工具{% endblock %}</title>
	<meta charset="utf-8">
	<link rel="icon" href="{{ url_for('static', filename='images/favicon.ico') }}">
	<script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>
	{% endblock %}
    {% block css %}
    {% endblock %}
	{% block head_js %}
	{% endblock %}
</head>
<body>
	<div>
		{% for message in get_flashed_messages() %}
		<div class="flash">{{ message }}</div>
		{% endfor %}
	</div>
	<div>
		<ul>
			{% if current_user.is_authenticated %}
			<li><a href="{{ url_for('users.logout') }}">Logout({{ current_user.username }})</a></li>
			{% else %}
			<li><a href="{{ url_for('users.login') }}">Login</a></li>
			<li><a href="{{ url_for('users.register') }}">Register</a></li>
			{% endif %}
		</ul>
	</div>
	<div>
		{% block body %}
		{% endblock %}
	</div>
</body>
</html>
